# -*- coding: utf-8 -*-
# @Time     : 2021/4/18 20:31
# @Author   : pengrenjie
# @Email    : 941257162@.com
# @File     : 列表去重并排大小.py
while 1:
    list = []
    num = input("请输入你想排列几个数:")

    for i in range(int(num)):
        n = input(f"输入的第{i + 1}个数字：")
        if n.isdigit():
            list.append(n)

        else:
            print("输入的不是数字，请重新输入")
    list1 = set(list)
    print(list1)
    print(sorted(list1,reverse=True))
